import request from '@/utils/request'

// 查询大用户设备列表
export function listDyhTerminals(query) {
  return request({
    url: '/region/basicDyh/listDyhTerminals',
    method: 'get',
    params: query
  })
}

// 查询大用户配置列表
export function listBasicDyh(query) {
  return request({
    url: '/region/basicDyh/list',
    method: 'get',
    params: query
  })
}

// 查询大用户配置详细
export function getBasicDyh(ID) {
  return request({
    url: '/region/basicDyh/' + ID,
    method: 'get'
  })
}

// 查询大分区配置详细
export function getBasicDyhByAreaId(params) {
  return request({
    url: '/region/basicDyh/getBasicDyhByAreaId/',
    method: 'get',
    params: params,
  })
}

// 新增大用户配置
export function addBasicDyh(data) {
  return request({
    url: '/region/basicDyh',
    method: 'post',
    data: data
  })
}

// 修改大用户配置
export function updateBasicDyh(data) {
  return request({
    url: '/region/basicDyh',
    method: 'put',
    data: data
  })
}

// 删除大用户配置
export function delBasicDyh(ID) {
  return request({
    url: '/region/basicDyh/' + ID,
    method: 'delete'
  })
}
